<!DOCTYPE HTML>
<html>
 <head>
  <title> New Document </title>
  <meta charset="UTF-8" />
  <meta name="Generator" content="NPP-Plugin">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <style>
	/* 这里是CSS代码 */
  </style>

 </head>
 <body>
  <!--  Creating a download link is usually an easy task. 
  All we need to do is use an anchor tag <a>, and add the reference URL pointing to the file. 
  But some file types pose a technical problem – PDF, image and text files will open in the 
  browser instead of being downloaded when a user clicks on the relevant link(s).
  
    而通过设置download属性值，可以使得文本、PDF文件和image图像直接下载，并且可以指定下载文件的文件名
	
    href属性值可以：
	绝对 URL - 指向另一个站点（比如 href="http://www.example.com/index.htm"）
	相对 URL - 指向站点内的某个文件（href="index.htm"）
	锚   URL - 指向页面中的锚（href="#top"）-->
  
  <a href="http://localhost/test.html" download="new.html">下载文件</a>
 </body>
</html>